#coding=utf-8
"""
===========================
Author:杭州多测师_周sir
Time:2023/3/24 15:51
website:https://duoceshi.net
===========================
"""
class Pages_Element():

    # 1.用户名输入框的定位元素
    userName = ('id', "userAccount")

    # 2.密码框的定位元素
    passWord = ('id', "loginPwd")

    # 3.点击登录
    loginBtn = ("id", "loginBtn")

    # 4.断言
    deskTop = ('xpath', '/html/body/div/section/div[1]/div[1]/ul/li/span')

    # 5.点击用户中心
    user_center=('xpath','/html/body/div/aside/div/dl[1]/dt')
    # 6.点击用户管理
    user_manage = ("xpath",'/html/body/div/aside/div/dl[1]/dd/ul/li[1]/a')
    # 7.定位iframe框
    iframe1 = ('xpath','/html/body/div/section/div[2]/div[2]/iframe')
    # 8.点击添加用户
    addUser = ('xpath','/html/body/div/div[2]/span[1]/a[2]')
    # 9.定位第二个iframe框
    iframe2 = ('xpath','/html/body/div[3]/div/iframe')
    # 10.输入用户名
    user_input =("xpath",'/html/body/div/div/form/table/tbody/tr[1]/td/input[2]')